public class Main {
    public static void main(String[] args) {
        MyDoubleList myDoubleList = new MyDoubleList();
        myDoubleList.addLast(1);
        myDoubleList.addLast(2);
        myDoubleList.addLast(3);
        myDoubleList.addLast(4);
        myDoubleList.addLast(5);
        myDoubleList.remove(7);
        myDoubleList.addIndex(4,9);
        myDoubleList.display();
        myDoubleList.clear();
        System.out.println("---------------");
        myDoubleList.display();
        System.out.println(myDoubleList.size());
        System.out.print(myDoubleList.contains(2));
    }
}